<?php
/**
 * 简要分页配置
 */
function page_config($listRows = 20)
{
    $cookieListRow = cookie('listRows');
    $listRows      = $cookieListRow ? $cookieListRow : $listRows;
    $pageConfig    = [
        'list_rows' => $listRows,
        'query'     => input(),
    ];
    return $pageConfig;
}